package com.bigdata.management.controller;

import com.bigdata.management.bean.Customer;
import com.bigdata.management.bean.Student;
import com.bigdata.management.service.CustomerService;
import com.bigdata.management.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class StudentController {


    @Autowired
    private StudentService studentService;
    @RequestMapping(path = "/hello8",method = RequestMethod.GET)
    public void hello8() {
        List<Student> students = studentService.list();

        System.out.println(students);
    }
}
